import requests
import json

placeNames = '''
{
    "name":"中国",
    "province":[
        {
            "name":"山东",
            "cities":{
                "city":["枣庄","菏泽曹县","青岛"]
            }
        },
        {
            "name":"福建",
            "cities":{
                "city":["厦门","泉州"]
            }
        },
        {
            "name":"黑龙江",
            "cities":{
                "city":["哈尔滨"]
            }
        }
    ]
}    
'''
jst = json.loads(placeNames)
print(jst)
print(jst['name'])
print(jst['province'][0]['name'])
print(jst['province'][0]['cities'])
print(jst['province'][0]['cities']['city'])

# url = "https://jsonplaceholder.typicode.com/users"
url = "http://songsearch.kugou.com/song_search_v2?keyword=周杰伦&pagesize=1"
html = requests.get(url)
jtext = json.loads(html.text)
print(jtext)